package com.thor.palmmall.rest.order.converter;

import org.springframework.core.convert.converter.Converter;

import com.thor.palmmall.rest.order.AProductBrand;
import com.thor.palmmall.spi.order.SProductBrand;

public class AProductBrandConverter  implements Converter<SProductBrand, AProductBrand>{
	private static AProductBrandConverter instance;
	public static AProductBrandConverter getInstance() {
		if (instance == null)
			instance = new AProductBrandConverter();
		return instance;
	}
	
	@Override
	public AProductBrand convert(SProductBrand source) {
		AProductBrand target = new AProductBrand();
		target.setUuid(source.getUuid());
		target.setCode(source.getCode());
		target.setName(source.getName());
		target.setLevelId(source.getLevelId());
		return target;
	}
}
